import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { ManagerSystemComponent }     from './manager-system.component';

import { DefaultInterfaceComponent } from './default-interface/default-interface.component';
import { SuccessfulInterfaceComponent } from './successful-interface/successful-interface.component';


import { StaffBusinessRecordComponent } from './staff-business-record/staff-business-record.component';
import { ApprovalRecordComponent } from './approval-record/approval-record.component';

const ManagerSystemRoutes: Routes = [
    
    {    
        path: 'manager-system',
        component: ManagerSystemComponent,
        
        children: [
          {
            path: 'default-interface',
            component: DefaultInterfaceComponent
          },
          {
            path: 'successful-interface',
            component: SuccessfulInterfaceComponent
          },
          {
            path: 'staff-business-record',
            component: StaffBusinessRecordComponent
          },
          {
            path: 'approval-record',
            component: ApprovalRecordComponent
          }
          /*
          
          {
            path: 'crisis-list',
            component: CrisisListComponent,
            
            children: [
              
              {
                path: ':id',
                component: LeaveDetailComponent
              }
              
              
            ]
            
          }
          */
        ]
        
    }
    

];

@NgModule({
    imports: [
        RouterModule.forChild(ManagerSystemRoutes)
    ],
    exports: [
        RouterModule
    ]
})
export class ManagerSystemRoutingModule { }